package com.netease.web.service.impl;

import java.util.List;

import javax.annotation.Resource;


import com.netease.web.dao.ContentDao;
import com.netease.web.pojo.Content;
import com.netease.web.service.contService;


public class contServiceImpl implements  contService{

	@Resource
	ContentDao contentDao;
	
	@Override
	public Content getContentById(int id) {
		return contentDao.getContentById(id);
	}

	@Override
	public List<Content> getAllContent() {
		return contentDao.getAllContent();
	}

	@Override
	public int deleteContentById(int id) {
		return contentDao.deleteContentById(id);
	}

	@Override
	public int insertContent(Content content) {
		return contentDao.insertContent(content);
	}

	@Override
	public int updataContent(Content content) {
		return contentDao.updataContent(content);
	}

}
